

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>iframe页面</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../layui/css/layui.css" media="all">
  <style>
    body{padding:10px; font-size:14px; background:#fff; width:95%; margin:0 auto; font-size:14px; line-height:20px; overflow:hidden;}
    p{margin-bottom:10px;}
    input{border:1px solid #999; padding:5px 10px; margin:0 10px 10px 0;}
  </style>
</head>
<body>

<form id="search-form">
  <div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">


    <div class="layui-form layui-card-header  layuiadmin-card-header-auto">
      <div class="layui-inline">
        <label class="layui-form-label">客户</label>
        <div class="layui-input-block">
<!--          <input id="search-content" type="text" name="search-content" placeholder="请输入" autocomplete="off" class="layui-input">-->
          <select name="search-content" id="select_cus">-->
           //自动填充的客户信息
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
          <select id="search-state" name="search-state">
            <option value="">请选择</option>
            <option value="1">正常</option>
            <option value="0">停用</option>
          </select>
        </div>
      </div>
      <div class="layui-show-md-block">(状态如果想搜索所有状态，空选即可)</div>
    </div>



  </div>
</form>



<script src="../layui/layui.js"></script>

<script>
  layui.config({
    base: '../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
            ,form = layui.form;




  })
</script>

<script>
layui.use('layer', function(){
  var $ = layui.$
  ,layer = layui.layer
  ,index = parent.layer.getFrameIndex(window.name); //获取窗口索引

  var active = {
    close: function(set){
      parent.layer.close(index);
    }
  }
  
  $('.layui-btn-container .layui-btn').on('click', function(){
    var othis = $(this)
    ,type = othis.data('type');
    active[type] && active[type].call(this);
  });
});
</script>
</body>
</html>
